home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / Commander Sets / 4D Speech Pack / 4D Speech Pack.rsrc / TEXT_17664_†SP Language.txt < prev    next >
Encoding:
Text File  |  1994-09-14  |  1.8 KB  |  39 lines

  1. SP Language (voice; language; region; script) -> err
  2.  
  3. voice          string (63) specifys the voice you want to use.
  4. language      integer      )
  5. region         integer      )
  6. script         integer       all these return the code for the language, region
  7.                                    and script the specified voice is able to handle.
  8.                                    Apple has defined 140 languages, 44 regions and
  9.                                    34 scripts in Inside Macintosh Text. See the lists
  10.                                    in the Script Manager chapter for a full listing.
  11.                                    The script code is the kind of text the voice can
  12.                                    process and the language and region code of the
  13.                                    output produced.
  14. err             integer       returns the error which occured. 
  15.                                     A value of zero indicates no error occured. See 
  16.                                     below for a list of possible errors.
  17.  
  18. Returns language specific information about the specified voice.
  19.  
  20. Until Apple or third-parties release non-U.S. versions of synthesizers and voices you will only get zero values which are the values for the U.S. language and region and the Roman script.
  21.  
  22. This function enables the designer to filter any voice based on the language-, region- and script code.
  23.  
  24. Examples:
  25.   $err := SP Language ("*";$language;$region;$script)
  26.   $err := SP Language ("Marvin";$language;$region;$script)
  27.   $err := SP Language ($voicename;$language;$region;$script)
  28.  
  29. Possible errors:
  30.         0  No Error
  31.       -4  Speech Pack can not be used (Speech Mgr not available)
  32.     -50  Parameter error (inside external, not necessarily the
  33.             parameters you pass)
  34.   -108  Not enough memory
  35.   -244  Voice resource not found
  36.  
  37.  
  38.  
  39.